#include <iostream>
using namespace std;

int main()
{
	char ch;
	cin >> ch;
	int i;
	i = ch;
	cout << i;
	return 0;
}
